package com.tuanzi.loan.business.entity.family;

import javax.persistence.*;

import com.tuanzi.loan.business.validation.annotation.family.ProductMatchRuleBusinessValidation;
import com.tuanzi.loan.core.entity.AuditEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Entity
@Table(name = "LOAN_PRODUCT_MATCH_RULE")
@ProductMatchRuleBusinessValidation
@EqualsAndHashCode(callSuper = true)
public class ProductMatchRule extends AuditEntity {

	private static final long serialVersionUID = -502800265269352435L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "recommend_position")
	private Integer recommendPosition;

	@Column(name = "advert_position")
	private Integer advertPosition;

	@Column(name = "item_json")
	private String itemJson;

	@Column(name = "priority_json")
	private String priorityJson;

	@Column(name = "config_json")
	private String configJson;

}